package org.atlantis.datasink.codec;

import java.net.SocketAddress;
import java.util.List;

import org.atlantis.datasink.cfg.Option;
import org.atlantis.datasink.server.CommType;

public interface CodecOption extends Option {

	String getServerName();

	long getTimeout();

	/** just for passive communication type */
	int getBindPort();

	/** just for active communication type */
	CommandFactory getRequestFactory();

	/** just for active communication type */
	long getCommandSendInterval();

	/** just for active communication type */
	List<SocketAddress> getRequestServers();
	
	void checkByCommType(CommType commType);
}
